package com.pig.pojo.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pig.pojo.BasePojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品目录类
 */
@TableName("p_goods_category")
public class Category extends BasePojo {

    /**
     * 目录id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 目录名字
     */
    private String name;
    /**
     * 目录父目录
     */
    private Integer parentId;
    /**目录是否启用 1为启用 0为禁用*/
    private Integer status = 1;
    public Category() {
    }

    public Category(Date createdTime, Date modifiedTime, Integer id, String name, Integer parentId, Integer status) {
        super(createdTime, modifiedTime);
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parentId=" + parentId +
                ", status=" + status +
                ", "+ super.toString();
    }
}
